#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>

struct s {
    char name[10];
    char type;
    int i;
};

#define GET_ADDR_STRUCT(TYPE, MEMBER)   ((size_t) &((TYPE *)0)->MEMBER)     

int main (void)
{
    struct s ss;
    printf("s结构体的地址为：%d\n\r", GET_ADDR_STRUCT(struct s, type));
}